<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Css/tools.css" rel="stylesheet" type="text/css"/>
<title>窗帘计算器_大泉州房产</title>
<script language='javascript' type='text/javascript'>
<!--
function IsDigit(cCheck)
{
 return ((('0'<=cCheck) && (cCheck<='9'))||cCheck=='.');
 }
function CheckNum(charValue,alertValue,obj)
{
	for(var iIndex=0;iIndex<charValue.length;iIndex++)
	{
		var cCheck=charValue.charAt(iIndex);
		if(!IsDigit(cCheck))
		{
		alert(alertValue);
		obj.focus();
		return false;
		}
	}
}
function GoTo(URL){
	if(location.href.toLowerCase().indexOf(URL.toLowerCase())<0) location.href = URL;
}
//-->
</script>
<SCRIPT>
<!--
function window_cloth(form)
{
 //检查输入
 if(checkclothInput(form)==false) return;
 var window_width=0,window_height=0,clothnum=0,clothwidth=0;
 //给各个变量赋值
 window_width=form.window_width.value;
 window_height=form.window_height.value;
 clothwidth=form.clothwidth.value;
 //开始计算
//窗帘所需布料（米）= [ （窗户宽+0.15米×2）×2] ÷ 布宽×（0.15米+窗户高+0.5米+0.2米）
clothnum=((parseFloat(window_width)+parseFloat(0.15*2))*2)/clothwidth*(parseFloat(0.15)+parseFloat(window_height)+parseFloat(0.5)+parseFloat(0.2))
form.clothnum.value=Math.round(clothnum);

}
function  checkclothInput(form)
{
	if(form.window_height.value==""){
		alert("请输入窗户高度");
		form.window_height.focus();
		return false;
		}

	if(CheckNum(form.window_height.value,"窗户高度只能输入数字格式！",form.window_height)==false)
	return false;

	if(form.window_width.value==""){
		alert("请输入窗户宽度");
		form.window_width.focus();
		return false;
		}
	if(CheckNum(form.window_width.value,"窗户宽度只能输入数字格式！",form.window_width)==false)
	return false;

	if(form.clothwidth.value==""){
		alert("请输入布料宽度");
		form.clothwidth.focus();
		return false;
		}
	if(CheckNum(form.clothwidth.value,"布料宽度只能输入数字格式！",form.clothwidth)==false)
	return false;
}

//-->
</SCRIPT>
</HEAD>
<BODY>
<script type="text/javascript" src="/htmls/tools/images/js1.js">
//<!--

</script>
<script type="text/javascript">
//<!--
_S_pSt("");
//-->
</script>
<div class="pg">
  <!--上面-->
  <div class="logo1"><img src="/images/v1/common/logo.gif" /></div>
  <div class="logo2"><a href="/">首页</a><a href="/login.html">登录</a><a href="/reg.html">注册</a></div>
  <div class="dh"><img src="/images/v1/tools/ht.gif" /></div>
  <div class="dh1"><a href="/">房产首页</a>&gt;<a href="/jiaju.html">家装装修</a>&gt;<a href="/htmls/tools/jz1.htm">家装计算器</a>&gt;<a href="/htmls/tools/jz6.htm">窗帘计算器</a> </div>
  <!--中间-->
  <div class="main">
    <!--左边-->
    <div class="left">
      <div class="left1" style="margin-top:5px"><a href="/htmls/tools/jz1.htm">墙砖计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz2.htm" >地砖计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz3.htm">地板计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz4.htm">壁纸计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz5.htm">涂料计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz6.htm" style="font-weight:bold">窗帘计算器</a> </div>
    </div>
    <!--右边-->
    <div class="right1">
      <div class="r1">窗帘计算器</div>
      <div class="r2">
        <table>
          <tr>
            <td><form name="wallpaperfrm" action="" method="post">
                <table width="476" align="center" cellspacing="0" style="margin-top:10px;">
                  <tr>
                    <td class="title">1、请输入窗户信息</td>
                  </tr>
                  <tr>
                    <td class="elem">窗户高度
                      <INPUT class="inputinset" name="window_height">
                      米 <span style="color:#FF9932;"></span></td>
                  </tr>
                  <tr>
                    <td class="elem">窗户宽度
                      <INPUT class="inputinset" name="window_width">
                      米 <span style="color:#FF9932;"></span></td>
                  </tr>
                  <tr>
                    <td class="title">2、请输入布料信息</td>
                  </tr>
                  <tr>
                    <td class="elem">布料宽度
                      <INPUT class="inputinset" id="clothwidth" value="1.5 "
                  name="wallpaperpm">
                      米 <span style="color:#FF9932;"></span></td>
                  </tr>
                  <tr>
                    <td height="7"></td>
                  </tr>
                  <tr>
                    <td height="21" bgcolor="#fcf2d5"><strong>计算结果</strong></td>
                  </tr>
                  <tr>
                    <td height="1"></td>
                  </tr>
                  <tr>
                    <td height="1" background="/images/v1/tools/12.gif"></td>
                  </tr>
                  <tr>
                    <td height="7"></td>
                  </tr>
                  <tr>
                    <td class="elem">您所需要布料是
                      <INPUT class="inputinset" name="clothnum">
                      米 <span style="color:#FF9932;"></span></td>
                  </tr>
                  <tr>
                    <td height="35" align="center"><input type="button" onclick="window_cloth(this.form)" value=" 计算">
                      &nbsp;
                      <input type="reset"  value=" 重算">
                    </td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table>
      </div>
      <div style="background-color:#fcf2d5;padding:10px 20px 10px 20px;color:#666; width:547; clear:both"> <span style="color:#ff5500;">提醒：</span>该窗帘计算器提供的结果仅供参考。购买时请以专业厂商提供的数据为准。 </div>
    </div>
  </div>
  <!--注脚-->
  <div class="footer">
    <div class="link3" align="center">
      <div><a href="/">QZFC简介</a><span>|</span><a href="/">用户注册</a><span>|</span> <a href="/"> 隐私声明</a><span>|</span><a href="/">服务条款</a><span>|</span><a href="/">合作加盟</a><span>|</span><a href="/">联系我们</a><span>|</span><a href="/">友情链接</a><span>|</span><a href="/">帮助中心</a></div>
      <div>中国·福建·泉州·丰泽区泉秀路宝成大厦1#&nbsp;&nbsp;&nbsp;客服电话：0595-24663003&nbsp;&nbsp;&nbsp;传真: 0595-22164848</div>
      <div>大泉州房产网 qzfc.com  版权所有 © 2008-2009</div>
    </div>
  </div>
</div>
</body>
</html>
